package com.rxh.mapper.core;

import com.rxh.mapper.base.BaseMapper;
import com.rxh.pojo.core.CoreMerchantOrder;
import com.rxh.pojo.core.CoreOrderChange;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

public interface CoreMerchantOrderMapper extends BaseMapper<CoreMerchantOrder, Long> {


    @MapKey("orderId")
    Map<Long, CoreMerchantOrder> selectByOrderChangesForOperation(List<CoreOrderChange> orderChanges);

    CoreMerchantOrder selectByOrderId(Long orderId);

    CoreMerchantOrder selectBondAndDeductByOrderId(Long orderId);

    int updateByPrimaryKeySelectiveByOrderId(CoreMerchantOrder coreMerchantOrder);

}